package com.zgroup.domain

class Dictionary {
  String type     // 字典类型
  String code     // 代码
  String name     // 名称
  String pinyin   // 拼音（首字母缩写）
  Integer sortNo
  static constraints = {
    type(blank: false, maxSize: 50);
    code(blank: false, maxSize: 50);
    name(blank: false, maxSize: 50);
    pinyin(nullable: true, maxSize: 50);
  }
  static mapping = {
    dynamicInsert true
    dynamicUpdate true
  }

  String toString() {
    "code:" + code + ",name:" + name
  }
}
